package com.prodog.gamemodule.config;

import com.prodog.database.annotation.Config;
import lombok.Data;

import java.util.Map;

@Config(path = "游戏配置/配置/映射字典配置.json", module = "字典配置")
@Data
public class MapDictConfig {
    private Map<String, Map<String, String>> dicts;

    public String get(String dict, Object key) {
        return dicts.get(dict).get(String.valueOf(key));
    }
}
